package com.atguigu.meinian.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页结果
 * @author zbystart
 * @create 2021-06-19 12:00
 */
public class PageResult implements Serializable {

    private static final long serialVersionUID = -6849794470754655710L;

    private Long total;//总记录数
    private List rows;//当前页结果
    private Integer page;// 当前页数
    public PageResult(Long total, List rows,Integer page) {
        super();
        this.total = total;
        this.rows = rows;
        this.page = page;
    }
    public Long getTotal() {
        return total;
    }
    public void setTotal(Long total) {
        this.total = total;
    }
    public List getRows() {
        return rows;
    }
    public void setRows(List rows) {
        this.rows = rows;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
}
